package org.swan.web.role.service;

import org.swan.web.role.bean.RolePermissionBean;
import java.util.List;
import java.util.Optional;

public interface RolePermissionService {

    Optional<RolePermissionBean> getRolePermissionById(long id);

    long addRolePermission(RolePermissionBean RolePermissionBean);

    RolePermissionBean updateRolePermission(RolePermissionBean RolePermissionBean);

    RolePermissionBean deleteRolePermissionById(long RolePermissionId);

    List<RolePermissionBean> list(int offset, int rows);
}
